<extend name="./Template/Layout/Layout.html" />
<block name="style">

</block>
<block name="body">
    <div class="J_mainContent" id="content-main" style="width:100%;">

        <div style="margin: 15px;">
            <div class="mb10">
                <a href="{:U('Home/Virtuallayer/addlayerinfo',array('id'=>$layerid))}" class="layui-btn layui-btn-normal" title="新增当前图层信息"> <i class="fa fa-plus"></i> 新增当前图层信息</a>
                <a href="{:U('Home/Virtuallayer/listLayer')}" class="layui-btn layui-btn-warm" title="返回图层列表"> 返回图层列表</a>
            </div>
            <table class="layui-table" lay-even>
                <thead>
                <tr>
                    <th>虚拟图层名称</th>
                    <th>真实图层名称</th>
                    <th>添加时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <foreach name="list" item="vo" key="k" >
                    <tr layerid="{$vo.id}">
                        <td>{$vo.layername}</td>
                        <td>{$vo.mapname}</td>
                        <td>{$vo.ttime|fdate=###}</td>
                        <td>
                            <a href="{:U('Home/Virtuallayer/addlayerinfo',array('id'=>$layerid,'layerinfoid'=>$vo['id']))}" class = "layui-btn layui-btn-sm layui-btn-green" > <i class = "layui-icon" > &#xe642; </i></a >
                            <a href="javascript:void(0);" class = "flydelete layui-btn layui-btn-sm layui-btn-danger" > <i class = "layui-icon" > &#xe640; </i></a >
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>

            <div class="layui-table-page mb10">
                <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1">
                    {$_page}
                </div>
            </div>
        </div>

    </div>
</block>
<block name="script">
    <script>
        var editurl = "{:U('Home/Virtuallayer/addlayer')}";
        var deleteurl = "{:U('Home/Virtuallayer/dellayerinfo')}";
    </script>
</block>
